package com.xiaoyu.lanling.feature.videomatch.activity

import android.content.Intent
import android.os.Bundle
import com.xiaoyu.lanling.R
import com.xiaoyu.lanling.activity.base.AppCompatToolbarActivity
import com.xiaoyu.lanling.feature.videomatch.controller.VideoMatchCallViewController
import com.xiaoyu.lib_av.state.CallStateManager

class VideoMatchCallActivity : AppCompatToolbarActivity() {

    private var mController: VideoMatchCallViewController? = null

    override fun onCreateSafelyAfterAppFinishInit(savedInstanceState: Bundle?) {
        super.onCreateSafelyAfterAppFinishInit(savedInstanceState)
        setContentView(R.layout.video_match_activity)
        setDarkStatusBar()
        mController = VideoMatchCallViewController(this)
    }

    override fun onBackPressed() {
    }

    override fun onResume() {
        super.onResume()
        mController?.onResume()
    }

    override fun onStop() {
        super.onStop()
        mController?.onStop()
    }

    override fun onDestroy() {
        super.onDestroy()
        mController?.onDestroy()
    }

    override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
        super.onActivityResult(requestCode, resultCode, data)
//        mController?.onActivityResult(requestCode, resultCode, data)
    }
}